﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Com.Toook.Common;

public partial class Master_home : System.Web.UI.MasterPage
{
    //protected string StartTime;
    protected void Page_Load(object sender, EventArgs e)
    {
        //记录用户进入页面时间
        //StartTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
    }
    /// <summary>
    /// 设置页面的标题、关键字、描述信息
    /// </summary>
    /// <param name="row"></param>
    public void SetTitleKeyDesc(DataRow row)
    {
        string page = Request["page"];
        int p;
        if(string.IsNullOrEmpty(page) || !int.TryParse(page, out p))
        {
            page = "_第1页";
        }
        else
        {
            page = "_第" + p.ToString() + "页";
        }
        Page.Title = row[PageColumn.title].ToString() + page;        
        metaDesc.Content = row[PageColumn.description].ToString();
        metaKey.Content = row[PageColumn.keyword].ToString();
    }
}
